import 'package:flutter_baselib/lib.dart';
import 'package:flutter_baselib_example/config/login_info_manager.dart';
import 'package:flutter_baselib_example/module/userlist/model/user_detail_bean.dart';
import 'package:flutter_baselib_example/net/http_urls.dart';

///@date:  2021/3/2 11:26
///@author:  lixu
///@description: 用户列表viewModel
class UserListViewModel extends BaseViewModel<UserDetailBean> {
  UserListViewModel() : super(isPageLoad: false);

  @override
  Map<String, dynamic> getRequestParams() {
    return {
      'userId': loginInfo.userBean?.userId,
      'token': loginInfo.token,
    };
  }

  @override
  String getTag() {
    return 'UserListViewModel';
  }

  @override
  String getUrl() {
    return HttpUrls.userListUrl;
  }
}
